package com.aloda.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author aloda
 * @Date 2025/4/30 10:21
 */
@FeignClient("oj-judge")
public interface JudgeClient {

    /**
     * 根据提交记录id做判题任务
     * @param id 提交记录id
     */
    @PostMapping("/judge/inner/{id}")
    void doJudge(@PathVariable Long id);
}
